import request from '@/utils/request'

export function addPersonnel(data) {
	return request({
		url: '/system/personnel',
		method: 'post',
		data: data
	})
}

export function putPersonnel(data) {
	return request({
		url: '/system/personnel',
		method: 'put',
		data: data
	})
}


export function delPersonnel(id) {
	return request({
		url: `/system/personnel/${id}`,
		method: 'delete',
	})
}

//查询赛事工作人员列表
export function addPersonnelList(data) {
	return request({
		url: '/system/personnel/list',
		method: 'get',
		data: data
	})
}

// export function delPersonnel(id) {
// 	return request({
// 		url: `/system/personnel/${id}`,
// 		method: 'delete',
// 	})
// }